<%@ include file="/view/template/header.jsp"%>

<div id="content">
	<%@ include file="/view/ehr/ehr_common.jsp"%>
	<div class="right-content">
		<div class="box">
			<div class="sub_box">
				<h1><s:text name="menu.supply_chain.drugs_given_to_a_patient_search_results"></s:text></h1>
				<%-- <s:form action="search_patient_drugs_given_to_patient_results_form1"
					method="post"> --%>
					<s:if test="action.prescriptionDrugsList.size > 0">
					<table border="1px" bordercolor="#0000FF">
						<tr>
							<td><span><s:label key="prescribeDrugs1.patientId"></s:label></span></td>
							<td><span><s:label key="prescribeDrugs1.drugId"></s:label></span></td>
							<td><span><s:label key="prescribeDrugs1.drugName"></s:label></span></td>
							<td><span><s:label key="prescribeDrugs1.dosage"></s:label></span></td>
							<td><span><s:label key="prescriptionDrugs.minAmount"></s:label></span></td>
							<td><span><s:label key="prescriptionDrugs.maxAmount"></s:label></span></td>
							<td><span><s:label key="prescriptionDrugs.amountUnits"></s:label></span></td>
							<td><span><s:label key="prescribeDrugs1.dispensedquantity"></s:label></span></td>
							<td><span><s:label key="prescribeDrugs1.dispenseDate"></s:label></span></td>
						</tr>
						
						<s:iterator value="action.prescriptionDrugsList">
						
						<tr>
							<td><s:property value="%{patientId}" /></td>
							<td><s:property value="%{drugId}" /></td>
							<td><s:property value="%{drugName}" /></td>
							<td><s:property value="%{dosage}" /></td>
							<td><s:property value="%{minAmount}" /></td>
							<td><s:property value="%{maxAmount}" /></td>
							<td><s:property value="%{dispenceUnits}" /></td>
							<td><s:property value="%{dispencedQuantity}" /></td>
							<td><s:property value="%{requestDate}" /></td>
						</tr>
						</s:iterator>
					</table>
					</s:if>					
				<%-- </s:form> --%>
			</div>
		</div>
	</div>
</div> 
<%@ include file="/view/template/footer.jsp"%>